package com.hsp.demo_06_object;

public class Demo_01_Finalize {
    public static void main(String[] args) {
        AA aa = new AA();
        aa = null;
        System.gc();
        System.out.println("AA调用结束！");
    }
}

class AA{

    @Override
    protected void finalize() throws Throwable {
        System.out.println("开始清理这个垃圾。。");
    }
}
